package cn.wolfcode.productdemo.product_fifter;

import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.swing.text.html.HTML;

/**
 * @Description: 演示信息标签
 * @Author: 伍家钰
 * @Date: 2020/9/4 12:49
 * @Version: 1.0
 */
@RestController
public class TagProductController {
    @Autowired
    private RocketMQTemplate template;

    @RequestMapping("tag")
    public String tagTest(String msg, String tag) {
        template.syncSend("01-tag-hello" + tag, msg);
        System.out.println("发送成功");
        return "success";
    }
}
